class CreateCategories < ActiveRecord::Migration
  def self.up
    create_table :categories do |t|
      t.string  :name
      t.timestamps
    end
   
    Category.create(:name=>'GM');
    Category.create(:name=>'Internet');
    Category.create(:name=>'Sample');
    Category.create(:name=>'HR');
    Category.create(:name=>'News');
    
  end

  def self.down
    drop_table :categories
  end
end
